<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\admin\model;
use think\Model;
/**
 * Description of Tasktype
 *
 * @author Administrator
 */
class Tasktype extends Model{
   
           protected $name = 'tasktype';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    // 追加属性
     protected function base($query)
    {
        $query->where('status',1);
    }
}
